How can I convert a string representation of a list to a proper nested list in Python

welcome to shbcf.ru